﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ch02
{
    class Class3
    {
        static void Main(string[] args)
        {
            //使用Convert类进行类型转换
            int n1 = Convert.ToInt32(98.5);
            short n2 = Convert.ToInt16(98.5);
            long n3 = Convert.ToInt64(98.5);
            
        }
    }
}
